package com.ruoyi.lowcode.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 目录菜单业务对象 lc_directory_menu
 *
 * @author ruoyi
 * @date 2023-10-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LcDirectoryMenuBo extends BaseEntity {

    /**
     * 菜单id
     */
    @NotNull(message = "菜单id不能为空", groups = { EditGroup.class })
    private Long menuId;

    /**
     * 目录id
     */
    @NotNull(message = "目录id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long directoryId;

    /**
     * 父菜单id
     */
    @NotNull(message = "父菜单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    private Long modelId;
    private String type;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 菜单名称
     */
    @NotBlank(message = "菜单名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String menuName;

    /**
     * 显示顺序
     */
    private Long orderNum;

    /**
     * 部门状态（0正常 1停用）
     */
    @NotBlank(message = "部门状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
